const showPosition = (position) => {
  console.log(position)
}
const showErr = () => {}
const options = {}

export default function getLocation() {
  return new Promise((resolve, reject) => {
    var geolocation = new qq.maps.Geolocation('GBGBZ-U5FWL-HSZPU-EKQYZ-UOKAS-XJBOO', 'myapp')
    geolocation.getLocation(
      (position) => {
        resolve(position)
      },
      (err) => {
        reject(err)
      },
      options
    )
  })
}
